<template>
	<aside class="res-com">
	  <h1 class="res-title">资源评论</h1>
	  <textarea class="area" placeholder="下载资源后方可评论"></textarea>
	  <Star v-model="star" class="star" />
	  <div class="btn"><button type="button">提交评论</button></div>
	</aside>
</template>

<script>

import Star from './Star.vue' ; 

export default {
	components: {
		Star , 
	},
	props: {
		resId: { // 要评论的资源ID, 必传
			type: [Number , String], 
			required: true
		}
	},
	data() {
		return {
			star: 1 , 
		}
	}
}

</script>

<style>
</style>